import 'package:cbec_app/generated/json/base/json_field.dart';
import 'package:cbec_app/generated/json/red_packet_Item_entity.g.dart';
import 'dart:convert';
export 'package:cbec_app/generated/json/red_packet_Item_entity.g.dart';

@JsonSerializable()
class RedPacketItemEntity {
  String? redPacketId = '';
  String? marketingId = '';
  String? redPacketUserId = '';
  String? redPacketName = '';
  double? price;
  String? content = '';
  String? goodsType = '';
  int? goodsTypeValue = 0;
  String? goodsTypeValueId = '';
  int? hasGet = 0;
  int? getLimit = 0;
  int? validityType = 0;
  String? startTime = '';
  String? endTime = '';
  String? useDate = '';
  int? ruleType = 0;

  RedPacketItemEntity();

  factory RedPacketItemEntity.fromJson(Map<String, dynamic> json) => $RedPacketItemEntityFromJson(json);

  Map<String, dynamic> toJson() => $RedPacketItemEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
